package com.tyut.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tyut.system.mapper.TyutPaperMapper;
import com.tyut.system.domain.TyutPaper;
import com.tyut.system.service.ITyutPaperService;

/**
 * 论文管理Service业务层处理
 * 
 * @author tyut
 * @date 2023-11-21
 */
@Service
public class TyutPaperServiceImpl implements ITyutPaperService 
{
    @Autowired
    private TyutPaperMapper tyutPaperMapper;

    /**
     * 查询论文管理
     * 
     * @param id 论文管理主键
     * @return 论文管理
     */
    @Override
    public TyutPaper selectTyutPaperById(Long id)
    {
        return tyutPaperMapper.selectTyutPaperById(id);
    }

    /**
     * 查询论文管理列表
     * 
     * @param tyutPaper 论文管理
     * @return 论文管理
     */
    @Override
    public List<TyutPaper> selectTyutPaperList(TyutPaper tyutPaper)
    {
        return tyutPaperMapper.selectTyutPaperList(tyutPaper);
    }

    /**
     * 新增论文管理
     * 
     * @param tyutPaper 论文管理
     * @return 结果
     */
    @Override
    public int insertTyutPaper(TyutPaper tyutPaper)
    {
        return tyutPaperMapper.insertTyutPaper(tyutPaper);
    }

    /**
     * 修改论文管理
     * 
     * @param tyutPaper 论文管理
     * @return 结果
     */
    @Override
    public int updateTyutPaper(TyutPaper tyutPaper)
    {
        return tyutPaperMapper.updateTyutPaper(tyutPaper);
    }

    /**
     * 批量删除论文管理
     * 
     * @param ids 需要删除的论文管理主键
     * @return 结果
     */
    @Override
    public int deleteTyutPaperByIds(Long[] ids)
    {
        return tyutPaperMapper.deleteTyutPaperByIds(ids);
    }

    /**
     * 删除论文管理信息
     * 
     * @param id 论文管理主键
     * @return 结果
     */
    @Override
    public int deleteTyutPaperById(Long id)
    {
        return tyutPaperMapper.deleteTyutPaperById(id);
    }
}
